package com.subsequent.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 电子处方表
 * @TableName prescriptions
 */
@TableName(value ="prescriptions")
@Data
public class Prescriptions implements Serializable {
    /**
     * 处方ID
     */
    @TableId(type = IdType.AUTO)
    private Integer prescriptionId;

    /**
     * 处方编号
     */
    private String prescriptionNo;

    /**
     * 关联问诊ID
     */
    private Integer consultationId;

    /**
     * 关联预约ID
     */
    private Integer appointmentId;

    /**
     * 开方医生ID
     */
    private Integer doctorId;

    /**
     * 患者ID
     */
    private Integer patientId;

    /**
     * 处方类型
     */
    private String type;

    /**
     * 诊断结果
     */
    private String diagnosis;

    /**
     * 医嘱
     */
    private String notes;

    /**
     * 处方状态
     */
    private Object status;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}